﻿using System.ServiceProcess;

namespace X18.Gather.GatherService
{
    public partial class ServiceImpl : ServiceBase
    {
        public GatherService gather;

        public ServiceImpl()
        {
            InitializeComponent();
            //
            gather = new GatherService();
            gather.Init();
        }

        protected override void OnStart(string[] args)
        {
            gather.Start(args);
        }

        protected override void OnStop()
        {
            gather.Stop();
        }
    }
}
